https://sandbox-portal.tidypay.com/api/v01/customers/[customer-id]/subscriptions
Allows to manage the subscriptions associated with the specified customer.
Resource URL | Description |
---|---|
https://sandbox-portal.tidypay.com/api/v01/customers/[customer-id]/subscriptions/[subscription-id] | Allows to manage the specified subscription. |
Method: PUT | Implicit: Yes | Returns: Subscription * |
Consumes: json, xml | Produces: json, xml | |
Create subscription by linking customer to payment plan for automated recurring charges.
- Requires existing customer, payment plan, and payment method (card or bank account). - Payment schedule follows configuration of the referenced payment plan. - For Direct Debit (ACH), subscribe to NOC and return webhooks to receive updates on account changes and failed transactions. - Timely handling of notifications prevents payment delays and reduces fees. - Suitable for membership fees, recurring service charges, or any scheduled billing. - System manages billing cycles automatically based on plan parameters. |
# | Name | Type | Required | Default | Description |
---|---|---|---|---|---|
01 | object | Subscription * | Yes |
Information about the subscription transaction. |
Method: GET | Implicit: Yes | Returns: Subscription[] * |
Consumes: xurl | Produces: json, xml | |
Returns a list of available subscriptions.
|
# | Name | Type | Required | Default | Description |
---|---|---|---|---|---|
01 | offset | Integer | No | 0 |
Index of the first record returned from the search result.\n\r\n> **Note:** Default value is 0. Used with limit parameter for pagination.\n\r\n> **Tip:** Use this field for implementing paginated results. See Error Messages section for details on pagination issues. |
02 | limit | Integer | No | 100 |
Maximum number of records to load per search call.\n\r\n> **Note:** Default value is 100. Adjust based on performance requirements.\n\r\n> **Tip:** Use this field to balance response size and performance. See Webhooks Management Guide for details on handling large datasets. |
03 | billingCycleType | String | No |
Type of a Billing Cycle used for filtering Subscription records. |
|
04 | createDateFrom | Date | No |
The beginning date for filtering Subscription records; only records dated from this specific day onwards are included. |
|
05 | createDateTo | Date | No |
The concluding date for filtering Subscription records; only records up to and through this specified date are included. |
|
06 | lastBillingDateFrom | Date | No |
The beginning date of the last billing date range for filtering billing records; only records dated from this specified day onwards are included. |
|
07 | lastBillingDateTo | Date | No |
The concluding date of the last billing date range for filtering billing records; only records up to and through this specified date are included. |
|
08 | nextBillingDateFrom | Date | No |
The beginning date of the next billing date range for filtering upcoming billing records; only future records dated from this specified day onwards are included. |
|
09 | nextBillingDateTo | Date | No |
The concluding date of the next billing date range for filtering upcoming billing records; only future records up to and through this specified date are included. |
|
10 | amountFrom | Integer | No |
The lower amount limit for filtering Subscription records; only those with values at or above this specified amount are included. |
|
11 | amountTo | Integer | No |
The upper amount limit for filtering Subscription records; only those with values up to and through this specified amount are included. |
|
12 | planId | Integer | No |
Plan ID used for filtering Subscription records. |
|
13 | type | String | No |
Type of the Subscription used for filtering Subscription records. |
|
14 | status | String | No |
Status of the Subscription used for filtering Subscription records. |
|
15 | name | String(255) | No |
Name of the Subscription used for filtering Subscription records. |